package cn.net.wangyixinwen.mvvm.activity;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;

import androidx.annotation.Nullable;

import cn.net.wangyixinwen.databinding.ActivitySettingBinding;
import cn.net.wangyixinwen.mvvm.vm.BaseViewModel;

public class SettingsActivity extends BaseActivity {

    private ActivitySettingBinding viewBinding;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }

    @Override
    protected BaseViewModel viewModel() {
        return null;
    }

    @Override
    protected void initView() {
        viewBinding = ActivitySettingBinding.inflate(LayoutInflater.from(this));
        setContentView(viewBinding.getRoot());
        viewBinding.llInfo.setRightText("今天不睡觉");
        viewBinding.titleBar.getLeftView().setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }

}
